﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace KoDService
{
    [ServiceContract]
    public interface IKoDService
    {
        [OperationContract]
        bool CheckUserNameInUse(string name);

        [OperationContract]
        bool ResendVerificationCode(string email);
        
        [OperationContract]
        bool CheckEmailUsed(string email);

        [OperationContract]
        string Login(string email, string password);

        [OperationContract]
        void Logout(string SessionID);

        [OperationContract]
        bool CreateAccount(string email, string password, DateTime DoB, string name, string gender);

        [OperationContract]
        double GetLatestVersion();
    }
}
